Skip to content

test(at): stabilize deepin-reader AT yaml suites - #349

Merged
deepin-bot[bot] merged 1 commit into
linuxdeepin:masterfrom
dengzhongyuan365-dev:fix/at-yaml-stability
Aug 28, 2026
Merged

test(at): stabilize deepin-reader AT yaml suites#349
deepin-bot[bot] merged 1 commit into
linuxdeepin:masterfrom
dengzhongyuan365-dev:fix/at-yaml-stability

Conversation

@dengzhongyuan365-dev

@dengzhongyuan365-dev dengzhongyuan365-dev commented Aug 28, 2026

Copy link
Copy Markdown
Member

Isolate reader session state and update runtime selectors for AT tests.

隔离阅读器会话状态,并更新运行时变化的AT元素定位。

Log: 稳定deepin-reader AT自动化用例
Influence: 修复会话恢复导致的AT用例状态污染问题,当前本地14/14通过。

Summary by Sourcery

Stabilize deepin-reader accessibility test suites by isolating reader session state and adapting selectors to the current runtime UI.

Bug Fixes:

  • Prevent session restoration from contaminating the state of deepin-reader accessibility test cases.
  • Update accessibility test selectors to remain compatible with runtime UI changes.

Tests:

  • Stabilize the deepin-reader YAML accessibility test suites across reader, navigation, sidebar, title, and document workflows.

Isolate reader session state and update runtime selectors for AT tests.

隔离阅读器会话状态,并更新运行时变化的AT元素定位。

Log: 稳定deepin-reader AT自动化用例
Influence: 修复会话恢复导致的AT用例状态污染问题,当前本地14/14通过。
@sourcery-ai

sourcery-ai Bot commented Aug 28, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Stabilizes the deepin-reader AT YAML suites by isolating reader session state and updating selectors/interactions for runtime UI changes, with the reported local result improving to 14/14 passing cases.

File-Level Changes

Change Details Files
Isolate reader session state to prevent test-order-dependent state pollution from session restoration.
  • Update suite setup or teardown behavior to start AT cases from an isolated reader state.
  • Reduce cross-suite contamination caused by previously opened documents or restored sessions.
tests/at/yaml/主界面 — 无文档打开/主界面 — 无文档打开.suite.yaml
tests/at/yaml/右键侧栏笔记菜单/右键侧栏笔记菜单.suite.yaml
tests/at/yaml/右键侧栏注释菜单/右键侧栏注释菜单.suite.yaml
tests/at/yaml/右键文档区域菜单/右键文档区域菜单.suite.yaml
tests/at/yaml/右键缩放区域菜单/右键缩放区域菜单.suite.yaml
tests/at/yaml/左侧栏 — 书签视图/左侧栏 — 书签视图.suite.yaml
tests/at/yaml/左侧栏 — 按键切换/左侧栏 — 按键切换.suite.yaml
tests/at/yaml/左侧栏 — 目录视图/左侧栏 — 目录视图.suite.yaml
tests/at/yaml/左侧栏 — 缩略图视图/左侧栏 — 缩略图视图.suite.yaml
tests/at/yaml/标题栏主菜单/标题栏主菜单.suite.yaml
tests/at/yaml/标题栏右键菜单/标题栏右键菜单.suite.yaml
tests/at/yaml/标题栏搜索框/标题栏搜索框.suite.yaml
tests/at/yaml/标题栏缩放或输入框/标题栏缩放或输入框.suite.yaml
tests/at/yaml/顶部标题栏/顶部标题栏.suite.yaml
Refresh AT element selectors and interactions to match runtime UI changes.
  • Replace stale accessibility selectors with selectors for the current runtime element hierarchy or names.
  • Adjust affected menu, sidebar, title-bar, document, and zoom-related steps while preserving scenario intent.
tests/at/yaml/主界面 — 无文档打开/主界面 — 无文档打开.suite.yaml
tests/at/yaml/右键侧栏笔记菜单/右键侧栏笔记菜单.suite.yaml
tests/at/yaml/右键侧栏注释菜单/右键侧栏注释菜单.suite.yaml
tests/at/yaml/右键文档区域菜单/右键文档区域菜单.suite.yaml
tests/at/yaml/右键缩放区域菜单/右键缩放区域菜单.suite.yaml
tests/at/yaml/左侧栏 — 书签视图/左侧栏 — 书签视图.suite.yaml
tests/at/yaml/左侧栏 — 按键切换/左侧栏 — 按键切换.suite.yaml
tests/at/yaml/左侧栏 — 目录视图/左侧栏 — 目录视图.suite.yaml
tests/at/yaml/左侧栏 — 缩略图视图/左侧栏 — 缩略图视图.suite.yaml
tests/at/yaml/标题栏主菜单/标题栏主菜单.suite.yaml
tests/at/yaml/标题栏右键菜单/标题栏右键菜单.suite.yaml
tests/at/yaml/标题栏搜索框/标题栏搜索框.suite.yaml
tests/at/yaml/标题栏缩放或输入框/标题栏缩放或输入框.suite.yaml
tests/at/yaml/顶部标题栏/顶部标题栏.suite.yaml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dengzhongyuan365-dev, lzwind

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@dengzhongyuan365-dev

Copy link
Copy Markdown
Member Author

/forcemerge

@deepin-bot

deepin-bot Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

This pr force merged! (status: unstable)

@deepin-bot
deepin-bot Bot merged commit 112bbac into linuxdeepin:master Aug 28, 2026
5 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants